<template>
  <div>
    <div style="overflow: hidden">
      <div class="price">
        <span>需付款</span>
        <span class="unit">¥</span>
        <span>25.</span>
        <span class="unit">2</span>
      </div>
      <div class="origin-price">
        <span>总价</span>
        <span class="unit">¥</span>
        <span>25.</span>
        <span class="unit">2</span>
      </div>
    </div>
    <div>
      <span class="right-button submit-btn" @click="addCar">加入购物车 </span>
      <span class="right-button" @click="deleteOrder">删除订单</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'close',
  props: {
    order: Object
  },
  methods: {
    addCar () {

    },
    deleteOrder () {
      this.$router.push({name: 'express'})
    }
  }
}
</script>

<style scoped>
.origin-price {
  margin-right: 10px;
  float: right;
  color: #c5c5c5;
}

.origin-price span {
  padding: 0;
  margin: 0;
}

.price {
  overflow: hidden;
  float: right;
  font-weight: bold;
  color: black;
}

.unit {
  font-size: 12px;
}

.right-button {
  margin: 10px 5px;
  overflow: hidden;
  float: right;
  border: #c5c5c5 1px solid;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
}

.submit-btn {
  border: #E65D6E 1px solid;
  color: #E65D6E;
}
</style>
